package router

import (
	"git.huoys.com/block_chain/mall/internal/user/service"
	"github.com/gin-gonic/gin"
)

func Routers(s service.UserService, e *gin.Engine) {
	var dy = NewCommentHandler(s)
	userApi := e.Group("/user")
	userApi.POST("/del", dy.DelUser)
	userApi.POST("/update", dy.UpdateUser)
	userApi.POST("/binding_invitation_code", dy.BindingInvitationCode)
	userApi.POST("/get_wallet", dy.GetWallet)
	userApi.POST("/transaction", dy.Transaction)
	userApi.POST("/get_transaction_record", dy.GetTransactionRecord)
	userApi.POST("/get_descendant_by_uid", dy.GetDescendantByUid)
	userApi.POST("/get_all_descendant_by_uid", dy.GetAllDescendantByUid)
	userApi.POST("/get_ancestor_by_uid", dy.GetAncestorByUid)
	userApi.POST("/get_all_ancestor_by_uid", dy.GetAllAncestorByUid)
}
